home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / linux-bo / dless-li / dless-li.rea < prev    next >
Text File  |  1996-11-17  |  6KB  |  157 lines

  1. What is Diskless LINUX (DL-Linux)?
  2. ----------------------------------
  3.  
  4. Diskless Linux allows to have a Linux workstation on PCs without a hard
  5. disk, provided that you have a "Linux server" which is a NFS server.
  6. The Linux server exports the /home, /usr, /var, /sbin, and /bin
  7. directories; you can choose to export /lib from the Linux server, but
  8. this slows considerably the system.
  9.  
  10. What do you need?
  11. -----------------
  12.  
  13. You need a BOOT disk and a ROOT disk. The BOOT disk is made with
  14. these instructions:
  15.  
  16. dd if=/vmlinuz of=/dev/fd0
  17. /sbin/vidmode /dev/fd0 0
  18. /sbin/ramsize /dev/fd0 1440
  19. /sbin/rdev /dev/fd0 /vmlinuz
  20.  
  21. I assume that the working kernel is named "vmlinuz". You can change
  22. the video mode to whatever you want; 0 means the 80x50 mode, which I
  23. prefer. You can also set the ramsize to 0 if you want to have
  24. more free RAM; this slows things, but if you want to have more memory
  25. for Xwindows, you can do that; remember that diskless workstations
  26. can't use a swapfile and that a RAM disk uses part yof your RAM.
  27.  
  28. The ROOT disk has an ext2 filesystem with the basic things needed to
  29. load a Linux session and to mount the remote filesystems described 
  30. above. A sample ROOT disk is included in the distribution. The base
  31. of it is a root disk made by the SAR package, but it has been 
  32. pretty heavily modified. Some of the differences are:
  33.  
  34. - Some additional programs included.
  35. - The /etc/inittab and the "rc" (system initialization) programs were
  36.   heavily modified. The /etc/inittab file is similar to the Slackware
  37.   distribution. The rc.S file calls the rc.bootp script for getting
  38.   the station's IP address and network configuration.
  39. - The BOOTP program, bootpc and the rc.bootp script was made by
  40.   Charles Hawkins (ceh@eng.cam.ac.uk) and modified by Jon Peatfield
  41.   (J.S.Peatfield@amtp.cam.ac.uk) from from the U. of Cambridge, UK.
  42.   I made some further modifications to the script.
  43.  
  44. Installation
  45. ------------
  46.  
  47. 1. Make a boot disk with or without RAMDISK. If your Linux station has
  48.    a hard disk, it's better to make a boot disk with RAMDISK, because
  49.    you can make a 8-16 MB swap partition. If your station is diskless,
  50.    it depends on how much RAM do you have. If you have only 4 MB, make
  51.    a boot disk without RAMDISK. If you have 8 MB, and want to load
  52.    Xwindows, use make also a boot disk without RAMDISK. For more than
  53.    8 MB or 8 MB without Xwindows, you can choose to make a boot disk
  54.    with RAMDISK.
  55.  
  56.    I have two scripts, "make.boot.ram" and "make.boot.noram" for doing
  57.    a boot disk.
  58.  
  59. 2. Download a root disk. Then get a formatted diskette and type:
  60.  
  61.    dd if=<boot image> of=/dev/fd0
  62.  
  63.    <boot image> can be "root.swapfile" for stations with a hard disk
  64.    (usually DOS machines with a Linux swap partition), or 
  65.    "root.no.swapfile", usually for diskless stations; you can't make
  66.     a remote swapfile.....
  67.  
  68. 3. If you need and to, make a swap partition or swap file. You will
  69.    need some 8-16 MB of free disk.
  70.    
  71. 4. Now modify your 
  72.  
  73.    mount /dev/fd0 /mnt
  74.  
  75.    After this, examine the mounted filesystems and modify whatever you
  76.    need, among them:
  77.  
  78.    /etc/fstab          -   for mounting the right filesystems from the
  79.                               Linux server and perhaps mounting other
  80.                 filesystems from anywhere else
  81.    /etc/rc.d/rc.bootp    -   for the BOOTP configuration 
  82.    /etc/rc.d/rc.S    -   you can modify it for setting up directly
  83.                 your IP address without invoking rc.bootp
  84.    /etc/passwd and    -   you can, for example make these links to
  85.    /etc/group            a directory where you have a copy of the
  86.                 server original files
  87.  
  88.    After modifying the root disk to your liking, type:
  89.  
  90.    umount /mnt
  91.  
  92. 5. Check that the Linux server has the correct configuration for
  93.    mounting the Linux filesystems:
  94.  
  95. -  Check that the /etc/exports exports the /home, /var, /sbin, 
  96.    /bin, /tmp and /usr filesystems. You can choose to export /lib,
  97.    also. WARNING: restrict the access of these filesystems to the
  98.    stations authorized to use Diskless Linux.
  99.  
  100. -  Check that the /etc/rc.d/rc.inetd2 activates the rpc.portmap, 
  101.    rpc.mountd and rpc.nfsd daemons. If not, uncomment the respective
  102.    parts of the rc.inet2 script.
  103.  
  104. 6. Have your BOOTP server adequately configurated.
  105.  
  106. 7. Go to a station, insert a boot disk and type CTRL-ALT-DEL. When
  107.    inserting a root disk or ramdisk is asked, insert your root
  108.    disk. After some seconds, the login prompt should appear. Login
  109.    as "root" and check that all is right.
  110.  
  111.  
  112. Some possible scenarios
  113. -----------------------
  114.  
  115. 1. A diskless station with 4 MB RAM
  116.    --------------------------------
  117.  
  118. Use only a boot floppy WITHOUT a RAMDISK and a swapless root disk.
  119. The first is needed because you can give away any single byte of RAM,
  120. and the second because there is no such thing as a remote swap area....
  121.  
  122. 2. A diskless station with 8 MB RAM
  123.    --------------------------------
  124.  
  125. You can use a boot floppy with or without a RAMDISK. It depends on
  126. using or not Xwindows. If you wish to work with Xwindows, use a 
  127. boot disk without a RAMDISK. Otherwise, you won't have enough
  128. RAM for running X. Use a swapless root disk.
  129.  
  130. 3. A diskless station with 12-16 MB RAM
  131.    ------------------------------------
  132.  
  133. I think you can use confidently a boot floppy WITH a RAMDISK unless
  134. you want to run lots of X applications or memory-consuming programs.
  135. Use always a swapless root disk.
  136.  
  137. 4. A DOS station with any RAM and a 8+ MB swap partition or file
  138.    ---------------------------------------------------------------
  139.  
  140. Use a boot floppy with RAMDISK and a root disk with a swapfile. Here
  141. you can run any application depending on how much physical and
  142. virtual (swap) RAM do you have. This is, of course, the best scenario.
  143.  
  144. To do
  145. -----
  146.  
  147. Probably this same work on a little (about 5 MB) hard disk Linux partition.
  148. Also, improvements on this work.
  149.  
  150.  
  151. Comments
  152. --------
  153.  
  154. Mail any comment, suggestion, etc. to Mario A. Guerra
  155. (mguerra@cariari.ucr.ac.cr). I work at the University of Costa Rica.
  156.  
  157.